David Edmundson [Thu, 28 Jun 2018 10:13:33 +0000 (11:13 +0100)]
wayland: Fix memory leak in server decoration object
The server decoration object becomes invaid when the wl_surface is
deleted. We should tidy it up then.
David Edmundson [Thu, 28 Jun 2018 10:12:59 +0000 (11:12 +0100)]
wayland: Reset server decoration interface on window mapping
The wl_surface is destroyed and recreated when the window is
mapped/unmapped. As we have a new wl_surface we need to create a new
server_decoration object for that surface.
David Edmundson [Mon, 25 Jun 2018 16:06:33 +0000 (17:06 +0100)]
wayland: Explicitly request mode for both CSD and SSD modes
According to the spec compositors were to assume surfaces are CSD until
told otherwise. This means we need to send
org_kde_kwin_server_decoration_request_mode in both cases.
This fixes libreoffice under kwin, which would remove it's own headers
as per the manager's request but not inform kwin leaving it in the even
more broken state of having none.
Benjamin Otte [Tue, 26 Jun 2018 02:13:24 +0000 (04:13 +0200)]
progressbar: Never stop never stopping
Reinstate code that was accidentally deleted during the port to
GtkProgressTracker in commit
d57ebe2de7d.
Without that code, pulsing the progressbar will stop doing anything
after 3 iterations.
Matthias Clasen [Mon, 25 Jun 2018 22:51:45 +0000 (18:51 -0400)]
Don't forget to dist open-type-layout.h
This is a private header, but it still needs to end up in the tarball.
Matthias Clasen [Mon, 25 Jun 2018 21:13:24 +0000 (21:13 +0000)]
Merge branch 'issue1170' into 'gtk-3-24'
modules: fix gtk-2.0 paths to gtk-3.0
See merge request GNOME/gtk!211
Matthias Clasen [Mon, 25 Jun 2018 18:57:52 +0000 (18:57 +0000)]
Merge branch 'mcatanzaro/#1174' into 'gtk-3-24'
imwayland: Fix a small leak
See merge request GNOME/gtk!218
Michael Catanzaro [Sun, 24 Jun 2018 20:49:46 +0000 (15:49 -0500)]
imwayland: Fix a small leak
If the parent get_preedit_string implementation returns a nonnull
zero-length string, then we ignore it, which is almost fine. We have to
free it, though.
Fixes #1174
Timm Bäder [Sun, 24 Jun 2018 06:26:13 +0000 (06:26 +0000)]
Merge branch 'wip/chergert/no-compressed-ui' into 'gtk-3-24'
build: use xml-stripblanks with .ui resources
See merge request GNOME/gtk!216
Jehan [Fri, 22 Jun 2018 22:16:39 +0000 (00:16 +0200)]
gtk: also recolor circle and ellipse in symbolic SVG icons.
Christian Hergert [Sun, 12 Nov 2017 23:18:21 +0000 (15:18 -0800)]
build: use xml-stripblanks with .ui resources
This adds a preprocess step to the .ui files to strip them of blank
characters. It also removes the compressed='true' from the .ui files since
that involves creating lots of decompressor objects when creating widgets.
Doing so has runtime overhead and slows down the creation of initial
application windows.
The .ui files are left compressed for the Inspector, since that is not in
the core performance path of application startup.
Roddy Shuler [Fri, 22 Jun 2018 12:53:43 +0000 (13:53 +0100)]
modules: fix gtk-2.0 paths to gtk-3.0
Both print backends and configuration files for multipress are being
installed in the wrong directory, so let's fix that.
Matthias Clasen [Thu, 21 Jun 2018 22:56:00 +0000 (18:56 -0400)]
Update NEWS
Daniel Boles [Wed, 20 Jun 2018 19:36:19 +0000 (20:36 +0100)]
EmojiCompletion: Avoid un/signed compare warnings
(A) Use gsize to match the result of g_variant_n_children
(B) Use guint for n_matches, like the struct (and all other n_matches)
Daniel Boles [Wed, 20 Jun 2018 19:33:45 +0000 (20:33 +0100)]
EmojiCompletion: Use Box:spacing instead of CSS
master uses CSS border-spacing, but that is not available in GTK+ 3.
Close https://gitlab.gnome.org/GNOME/gtk/issues/1166
Daniel Boles [Wed, 20 Jun 2018 19:24:19 +0000 (20:24 +0100)]
Adwaita: Don't use a property that GTK+ 3 lacks
border-spacing was not backported (yet?). If it won't be, then a
suitable replacement is needed. Until then, avoid the runtime error that
can result from using a nonexistent property in our theme.
https://gitlab.gnome.org/GNOME/gtk/issues/1166
Daniel Boles [Wed, 20 Jun 2018 18:37:45 +0000 (19:37 +0100)]
Adwaita: Regenerate CSS for emoji completion popup
Commit
65bb238a3f0075d88f6dd82e76de1e86946db001 forgot this bit.
Daniel Boles [Wed, 20 Jun 2018 18:24:39 +0000 (19:24 +0100)]
HC: Avoid excessive selectors from prev commit
The new rule does not need to affect all those other pseudoclasses. I
just put it in the wrong scope.
Daniel Boles [Wed, 20 Jun 2018 18:09:38 +0000 (19:09 +0100)]
gtk3-sections: Add GtkInfoBar.[gs]et-revealed()
https://gitlab.gnome.org/GNOME/gtk/issues/1165
Daniel Boles [Wed, 20 Jun 2018 18:09:23 +0000 (19:09 +0100)]
InfoBar: Fix wrong type in copy-pasted param doc
https://gitlab.gnome.org/GNOME/gtk/issues/1165
Daniel Boles [Wed, 20 Jun 2018 17:32:49 +0000 (18:32 +0100)]
HC: Avoid same BG/FG colors in flat treeview entry
Selected rows in tree views in HighContrast have a background colour the
same or nearly as the normal text colour, so we cannot let entries in
such rows have transparent backgrounds, or the text inside the entry
becomes nearly or totally impossible to see.
Dodge this by giving entry.flat inside treeview and with :focus the
$base_color, which is different from the text & so lets that be seen.
https://gitlab.gnome.org/GNOME/gtk/merge_requests/125
Benjamin Otte [Sat, 16 Dec 2017 01:24:12 +0000 (02:24 +0100)]
x11: Add necessary NULL check
(Backported from master
3438dcdd4e0)
Matthias Clasen [Wed, 20 Jun 2018 16:13:04 +0000 (16:13 +0000)]
Merge branch 'wip/dboles/searchenginetracker-plug-3' into 'gtk-3-24'
searchenginetracker: Don't leak the hits' GFiles
See merge request GNOME/gtk!206
Daniel Boles [Wed, 20 Jun 2018 08:54:16 +0000 (09:54 +0100)]
searchenginetracker: Don't leak the hits' GFiles
Matthias Clasen [Tue, 19 Jun 2018 19:40:42 +0000 (19:40 +0000)]
Merge branch '1160-crash-clearing-gtkentry-icon-tooltip' into 'gtk-3-24'
Resolve "Crash clearing GtkEntry icon tooltip"
See merge request GNOME/gtk!204
Daniel Boles [Tue, 19 Jun 2018 17:30:34 +0000 (18:30 +0100)]
a11y/entry: Fix copy-pasteo re 2ndary icon tooltip
The else case was wrongly resetting the accessible description on the
primary icon, which might not exist and can therefore cause a crash.
https://gitlab.gnome.org/GNOME/gtk/issues/1160
Matthias Clasen [Tue, 19 Jun 2018 15:43:40 +0000 (15:43 +0000)]
Merge branch 'patch-1' into 'gtk-3-24'
wayland: Use shm_open(SHM_ANON) on FreeBSD
See merge request GNOME/gtk!203
myfreeweb [Tue, 19 Jun 2018 14:49:18 +0000 (14:49 +0000)]
wayland: Use shm_open(SHM_ANON) on FreeBSD
This functionality is similar to Linux's memfd. It creates anonymous shared memory without touching the filesystem, which allows it to work in Capsicum capability mode (sandbox).
Benjamin Otte [Mon, 18 Jun 2018 14:17:44 +0000 (16:17 +0200)]
x11: Always set None pixmap for no background
None means no background, so it's always the correct thing to use and
ParentRelative is always wrong.
Closes: https://gitlab.gnome.org/GNOME/gtk/issues/1134
Chun-wei Fan [Tue, 19 Jun 2018 10:30:22 +0000 (18:30 +0800)]
gtk/gtkemojicompletion.c: Fix build on C89 and non-GCC
Declare variables at the top of the clock, and ensure that we don't try
to use g_autoptr(), which is a GCCism.
Chun-wei Fan [Wed, 28 Mar 2018 03:59:11 +0000 (11:59 +0800)]
gtk/language-names.c: Fix build on non-GCC/CLang
Remove g_auto*() usage from these sources and use the traditional
g_free(), as g_auto*() are GCCisms (or CLangisms).
Also, don't include unistd.h unconditionally and stop including
langinfo.h and dirent.h, since they seem to be unused.
Partially cherry-picked from
a4c0395343c3969c330cb37efa45ae952ba74b86
https://bugzilla.gnome.org/show_bug.cgi?id=773299
Matthias Clasen [Mon, 18 Jun 2018 11:24:36 +0000 (11:24 +0000)]
Merge branch 'window-activate-grab-3-again-24' into 'gtk-3-24'
gdk: activate surface on keyboard grabs
See merge request GNOME/gtk!176
Samuel Thibault [Fri, 1 Jun 2018 14:43:01 +0000 (16:43 +0200)]
gdk: activate surface on keyboard grabs
In
01455399e83a ("gdk: do not deactivate surface on keyboard grabs"), we
made gdk avoid deactivating surfaces when another application takes a
keyboard grab, by using has_focus_window instead of has_focus. That however
broke activating surfaces when the gdk application acquired a grab itself,
in which case has_focus_window is false but has_focus is true.
We thus actually need to use both: surfaces should be activated either
because we have normal keyboard focus, or because we grabbed the keyboard.
This also renames HAS_FOCUS to APPEARS_FOCUSED to better reflect its
role.
Fixes #85
(cherry picked from commit
3287ac96e02ff236d74db10164c5b0c1e7b2b0bf)
Mohammed Sadiq [Sat, 16 Jun 2018 05:05:55 +0000 (10:35 +0530)]
search-bar: Fix link to search-bar example
The master branch is now Gtk4. We should be linking to
stable branch here.
Michael Natterer [Mon, 11 Jun 2018 16:36:50 +0000 (18:36 +0200)]
gtk: fix wheel scrolling for very small adjustment page_size
For very small page sizes of < 1.0, the effect of pow() is the
opposite of what's intended and the scroll steps become unusably
large, make sure we never get a scroll_unit larger than page_size /
2.0, which used to be the default before the pow() magic was
introduced.
Victor Toso [Thu, 24 May 2018 13:42:47 +0000 (15:42 +0200)]
gdkseatdefault: Don't hide GdkWindow on grab failure
Application is not expecting that.
Bug found due gdk_seat_grab() failure on Lock Screen. When user
Unlock the screen, the application is visible but does not receive
enter-event any more on X11/GNOME.
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=
1485968
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=
1571422
Signed-off-by: Victor Toso <victortoso@redhat.com>
Signed-off-by: Carlos Garnacho <mrgarnacho@gmail.com>
Piotr Drąg [Sun, 10 Jun 2018 13:31:47 +0000 (15:31 +0200)]
Update Polish translation
Matthias Clasen [Fri, 8 Jun 2018 10:54:42 +0000 (10:54 +0000)]
Merge branch 'lrn/gks_vk_menu' into 'gtk-3-24'
GDK W32: Don't forget to check VK_MENU and set MK_ALT
See merge request GNOME/gtk!181
Matthias Clasen [Thu, 7 Jun 2018 19:52:02 +0000 (19:52 +0000)]
Merge branch 'wip/tchaik/fontconfig-timestamp' into 'gtk-3-24'
wayland: Implement 'gtk-fontconfig-timestamp' & 'gtk-modules'
See merge request GNOME/gtk!157
Matthias Clasen [Thu, 7 Jun 2018 18:30:48 +0000 (18:30 +0000)]
Merge branch 'gtk-3-24' into 'gtk-3-24'
Fix reference to user styles in gtkstyleprovider.h
See merge request GNOME/gtk!183
Mohammed Sadiq [Thu, 7 Jun 2018 10:14:14 +0000 (15:44 +0530)]
font-button: Suggest non deprecated function in docs
gtk_font_button_get_font_name() has been deprecated in 3.22 and
its public API is removed from GTK4.
Matijs van Zuijlen [Thu, 7 Jun 2018 08:49:59 +0000 (08:49 +0000)]
Fix reference to user styles in gtkstyleprovider.h
Jordi Mas [Wed, 6 Jun 2018 17:58:34 +0000 (18:58 +0100)]
Update Catalan translation
Jordi Mas [Wed, 6 Jun 2018 07:25:49 +0000 (08:25 +0100)]
Update Catalan translation
Руслан Ижбулатов [Wed, 6 Jun 2018 01:06:38 +0000 (01:06 +0000)]
GDK W32: Don't forget to check VK_MENU and set MK_ALT
Matthias Clasen [Tue, 5 Jun 2018 22:12:45 +0000 (22:12 +0000)]
Merge branch '1088-getting-css-properties-defined-in-em-etc-in-px-rounds-toward-0-delivering-1-too-few-pixels' into 'gtk-3-24'
Resolve "Getting CSS properties defined in em (etc.) in px rounds toward 0, delivering 1 too few pixels"
See merge request GNOME/gtk!158
Daniel Boles [Mon, 21 May 2018 20:40:39 +0000 (21:40 +0100)]
CssGadget: Round px values up for min-width|height
Otherwise, requesting a min size in em where the equivalent in px had a
fractional part would lead to the gadget getting allocated 1 too few px.
You could see this in the CSS property vs. allocation in the Inspector.
Note that margin/border/padding are left alone: the rationale is that we
do as browsers do, and Benjamin said we already do that for those,
whereas his tests on min-(width|height) showed otherwise. My subsequent
analysis indicated it to be far less clear-cut than that, but he remains
unconvinced that we should ceil() all the things! So just do these ones.
https://gitlab.gnome.org/GNOME/gtk/issues/1088
Matthias Clasen [Tue, 5 Jun 2018 17:07:05 +0000 (13:07 -0400)]
docs: Add indices for 3.24 api
We have some now.
Matthias Clasen [Tue, 5 Jun 2018 17:01:55 +0000 (13:01 -0400)]
Add new fontchooser api to the docs
We have docs.
Matthias Clasen [Tue, 5 Jun 2018 17:00:11 +0000 (13:00 -0400)]
Add gdk_window_move_to_rect to the docs
We have docs.
Matthias Clasen [Tue, 5 Jun 2018 16:57:46 +0000 (16:57 +0000)]
Merge branch 'wip/move-to-rect-public-gtk-3-24' into 'gtk-3-24'
gdk: Make gdk_window_move_to_rect public (gtk-3-24)
See merge request GNOME/gtk!180
Jonas Ådahl [Tue, 5 Jun 2018 13:01:52 +0000 (15:01 +0200)]
gdk: Make gdk_window_move_to_rect public
This is the API used by GtkMenu to properly position menus on the screen
without requiring GTK to query the menu window's position or the work
area of where the window is positioned. It makes it possible to position
popup windows properly when using Wayland.
Make this API available to external users so custom popup windows can be
positioned properly as well.
Closes: https://gitlab.gnome.org/GNOME/gtk/issues/997
Matthias Clasen [Mon, 4 Jun 2018 10:53:39 +0000 (06:53 -0400)]
Update NEWS
Matthias Clasen [Mon, 4 Jun 2018 21:06:30 +0000 (17:06 -0400)]
Bump version to 3.23.0
Yes, we are adding some api here.
Matthias Clasen [Mon, 4 Jun 2018 11:21:27 +0000 (07:21 -0400)]
Miscellaneous font chooser fixes
Fix various oversights in the backports of the
font chooser features.
Matthias Clasen [Mon, 2 Apr 2018 17:34:22 +0000 (13:34 -0400)]
font chooser: Make the language property writable
This is meant as an input to the font chooser.
We don't want the user to select a language, but
rather have fonts presented as they would work for
the current language. Therefore, do away with the
lang/script combo on the tweak page.
Matthias Clasen [Sun, 1 Apr 2018 23:35:55 +0000 (19:35 -0400)]
font chooser: Add examples for font features
For some font features, we can figure out affected
glyphs, and show before/after. For some others, we
hardcode typical sequences.
Still to do: figure out how to find ligatures and
show them.
Matthias Clasen [Mon, 4 Jun 2018 11:16:35 +0000 (07:16 -0400)]
Add a 3.24 version
Matthias Clasen [Sun, 3 Jun 2018 23:21:33 +0000 (23:21 +0000)]
Merge branch 'gtk-3-24' into 'gtk-3-24'
GtkWindow: Handle non-square icons with height > width correctly
See merge request GNOME/gtk!173
Christian Stadelmann [Sun, 3 Jun 2018 19:05:46 +0000 (21:05 +0200)]
GtkWindow: Handle non-square icons with height > width correctly
Matthias Clasen [Sun, 3 Jun 2018 13:48:40 +0000 (09:48 -0400)]
menu: Remove unstable annotations
These apis are not going to change in GTK+ 3.x.
Matthias Clasen [Fri, 1 Jun 2018 15:59:55 +0000 (11:59 -0400)]
Drop Ctrl-Shift-e support
Now that we have Emoji completion, drop the rather limited
Ctrl-Shift-e support in GtkIMContextSimple, and leave this
sequence to input methods.
Matthias Clasen [Tue, 15 Aug 2017 21:35:03 +0000 (17:35 -0400)]
widget-factory: add emoji completion to an entry
Matthias Clasen [Sat, 19 Aug 2017 18:08:15 +0000 (14:08 -0400)]
entry: Add emoji completion
Pop up completions when the text in the entry matches :word:
This functionality has to be enabled using the enable-emoji-completion
property.
Matthias Clasen [Sat, 19 Aug 2017 18:06:47 +0000 (14:06 -0400)]
Add an emoji completion popup
This widget provides entry completion-like functionality
for Emoji codes like :grin: or :kiss:.
Matthias Clasen [Sat, 19 Aug 2017 18:07:59 +0000 (14:07 -0400)]
Export some entry functions privately
This will be used in the following commits.
Matthias Clasen [Thu, 17 May 2018 15:48:34 +0000 (16:48 +0100)]
emoji: Hide recent section when empty
This is part of https://gitlab.gnome.org/GNOME/gtk/merge_requests/143
by Julian Sperber.
Matthias Clasen [Thu, 17 May 2018 15:37:26 +0000 (16:37 +0100)]
emoji: Improve section scrolling
Leave some space above the section heading when scrolling.
This is a part of https://gitlab.gnome.org/GNOME/gtk/merge_requests/143
by Julian Sperber.
Jordi Mas [Sun, 3 Jun 2018 10:13:19 +0000 (12:13 +0200)]
Update Catalan translation
Christian Hergert [Fri, 6 May 2016 13:12:29 +0000 (16:12 +0300)]
treeview: respect expander-size style property
Without enforcement to the expander-size, we can end up rendering icons
rather fuzzy. This uses the expander-size style property to determine
the square for the icon, centered on what was the calculated space for
the expander.
Mohammed Sadiq [Thu, 31 May 2018 10:54:00 +0000 (16:24 +0530)]
widget: Fix example code in doc
Martin Blanchard [Mon, 12 Mar 2018 20:16:25 +0000 (20:16 +0000)]
wayland: Implement'gtk-fontconfig-timestamp' & 'gtk-modules'
The 'gtk-fontconfig-timestamp' and 'gtk-modules' settings are
currently not available at all on Wayland. On X11, they are
implemented through xsettings maintained up-to-date by
gnome-settings-daemon.
This patch implements both GtkSettings for Wayland using a
new dbus interface also provided by gnome-settings-daemon.
Closes #886
Jason Zaman [Fri, 25 May 2018 03:37:45 +0000 (11:37 +0800)]
gtksocket: Adjust X sizes by scale-factor
X uses unscaled sizes, so they must be scaled properly. Otherwise
GtkSockets end up twice as big as they should be.
Closes: https://bugzilla.gnome.org/show_bug.cgi?id=765327
Signed-off-by: Jason Zaman <jason@perfinion.com>
Close !165
Emmanuele Bassi [Wed, 30 May 2018 10:18:56 +0000 (10:18 +0000)]
Merge branch 'gtksocket-scale-3-22' into 'gtk-3-22'
gtksocket: Adjust X sizes by scale-factor
See merge request GNOME/gtk!164
Matthias Clasen [Wed, 30 May 2018 02:13:04 +0000 (02:13 +0000)]
Merge branch 'gesture-docs' into 'master'
Gesture stuff
See merge request GNOME/gtk!169
(cherry picked from commit
8b24d59cde9410db28c7b61d323fa8b1f0180300)
334c7911 gesture: Fix get_last_event() docs
e9765c04 gesture: Fix code snippet
4d2b39d9 gesturemultipress: Don’t fire ::released after ::cancel
Matthias Clasen [Wed, 30 May 2018 02:13:04 +0000 (02:13 +0000)]
Merge branch 'gesture-docs' into 'master'
Gesture stuff
See merge request GNOME/gtk!169
(cherry picked from commit
8b24d59cde9410db28c7b61d323fa8b1f0180300)
334c7911 gesture: Fix get_last_event() docs
e9765c04 gesture: Fix code snippet
4d2b39d9 gesturemultipress: Don’t fire ::released after ::cancel
Matthias Clasen [Mon, 28 May 2018 16:09:47 +0000 (12:09 -0400)]
x11: Don't set NET_WM_PID when sandboxed
It is not useful, and some window managers misinterpret it and
add some "runs as root" indication to the window decoration.
See https://github.com/mate-desktop/marco/issues/301
Matthias Clasen [Mon, 28 May 2018 16:04:17 +0000 (12:04 -0400)]
gdk: Add a private api to find sandboxes
This will be used in more places in the future.
Daniel Mustieles [Mon, 28 May 2018 15:53:58 +0000 (15:53 +0000)]
Update Spanish translation
Daniel Boles [Sun, 27 May 2018 17:10:02 +0000 (18:10 +0100)]
gdkdnd: Fix 2 typos in docs
Christoph Reiter [Sun, 27 May 2018 16:38:28 +0000 (18:38 +0200)]
ci: update the docker image to fedora 28
So we get a newer pango
Matthias Clasen [Sun, 27 May 2018 15:50:45 +0000 (15:50 +0000)]
Merge branch 'gtk-3-24' into 'gtk-3-24'
icontheme: Keep dir_mtimes in order
See merge request GNOME/gtk!162
Piotr Drąg [Sun, 27 May 2018 06:16:50 +0000 (08:16 +0200)]
Update Polish translation
Piotr Drąg [Sun, 27 May 2018 06:03:18 +0000 (08:03 +0200)]
Update POTFILES.in and POTFILES.skip
Daniel Boles [Sat, 26 May 2018 00:06:00 +0000 (01:06 +0100)]
SpinButton: Fix an obviously wrong arg description
:climb-rate is not about what you get when you single-click on a button,
as this implied: it's what happens if you hold down a button or a key.
Fix the description of @climb_rate to new(), and while here, mention the
key in the blurb of :climb-rate itself.
Daniel Boles [Tue, 22 May 2018 00:16:04 +0000 (01:16 +0100)]
GdkWin: Avoid leak if bailing from process_updates
There is no point creating the list if we don't need to because we are
failing out, and even less point in leaking it in that case.
Daniel Boles [Mon, 21 May 2018 23:00:32 +0000 (00:00 +0100)]
StyleContext: Add a missing apostrophe
(or rather, the right single quote dictated by the HIG, which is
semantically not an apostrophe at all! I will die on this hill.)
Olivier Fourdan [Thu, 19 Apr 2018 12:22:04 +0000 (14:22 +0200)]
wayland: check native window for crossing events
gdk_wayland_*_grab()/ungrab() would emit crossing events which translate
as focus_in/focus_out events for keyboard.
However, the ungrab() functions compare the native toplevel as this is
what gets the Wayland pointer enter/leave events with the grab window,
so if the grab is issued on a child gdk window, those won't match and we
would emit more focus_out events than focus_in events.
This means that a widget such as spice-gtk which issues a keyboard grab
whenever the pointer enters the window and releases the grab when it
leaves the window would get uneven numbers of focus_in/focus_out events.
Also, gdk_wayland_seat_ungrab() would not emit crossing events for
keyboard devices, whereas gdk_wayland_device_ungrab() does, which adds
even more potential discrepancies between focus_in/focus_out events.
To solve this problem, introduce two new helper functions which check
the relevant native windows to emit crossing events when needed that get
called evenly from both gdk_wayland_seat_grab()/ungrab() and gdk_Wayland
_device_grab()/ungrab() APIs.
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=780422
Fixes: https://gitlab.gnome.org/GNOME/gtk/issues/792
Jason Zaman [Fri, 25 May 2018 03:37:45 +0000 (11:37 +0800)]
gtksocket: Adjust X sizes by scale-factor
X uses unscaled sizes, so they must be scaled properly. Otherwise
GtkSockets end up twice as big as they should be.
Closes: https://bugzilla.gnome.org/show_bug.cgi?id=765327
Signed-off-by: Jason Zaman <jason@perfinion.com>
Jan Alexander Steffens (heftig) [Wed, 23 May 2018 18:06:01 +0000 (20:06 +0200)]
icontheme: Keep dir_mtimes in order
Don't reverse the order each time we insert a theme. Reverse it only
once, after all themes have been loaded.
Fixes https://gitlab.gnome.org/GNOME/gtk/issues/1115
Carlos Garnacho [Tue, 22 May 2018 11:06:35 +0000 (11:06 +0000)]
Merge branch 'bz780422' into 'gtk-3-22'
wayland: check native window for crossing events
See merge request GNOME/gtk!147
Daniel Boles [Mon, 21 May 2018 22:38:23 +0000 (23:38 +0100)]
StyleContext: Don't advise using invalidate()
It's deprecated. Also, set_screen() is not used/needed in the demo cited
Matthias Clasen [Mon, 21 May 2018 21:15:41 +0000 (17:15 -0400)]
Remove the "without parent" warning
We've had it for a long time, and it hasn't really made
a difference. And I don't think we are prepared to turn
this into a hard error. So just drop it.
Daniel Boles [Mon, 21 May 2018 18:42:57 +0000 (19:42 +0100)]
Range: Up should only mean ++ if we are a GtkScale
The last round of patches to get the desired direction of value move in
response to scrolls/keypresses on scales had the inadvertent side effect
of giving the opposite direction on scrollbars. Seeing as gtkrange.c is
already a collection of hacks, add another so that fix only holds if the
instance is a GtkScale, since that is what those patches were aimed at.
Close https://gitlab.gnome.org/GNOME/gtk/issues/1065
Daniel Boles [Sun, 20 May 2018 18:28:13 +0000 (19:28 +0100)]
ProgressBar: Fix typo in doc comment
Daniel Boles [Mon, 21 May 2018 18:42:57 +0000 (19:42 +0100)]
Range: Up should only mean ++ if we are a GtkScale
The last round of patches to get the desired direction of value move in
response to scrolls/keypresses on scales had the inadvertent side effect
of giving the opposite direction on scrollbars. Seeing as gtkrange.c is
already a collection of hacks, add another so that fix only holds if the
instance is a GtkScale, since that is what those patches were aimed at.
Close https://gitlab.gnome.org/GNOME/gtk/issues/1065
Daniel Boles [Sun, 20 May 2018 18:28:13 +0000 (19:28 +0100)]
ProgressBar: Fix typo in doc comment
Matthias Clasen [Sat, 31 Mar 2018 18:43:04 +0000 (14:43 -0400)]
font chooser: Support font variations
Add sliders for the axes on the tweak page.
Matthias Clasen [Sat, 31 Mar 2018 13:57:34 +0000 (09:57 -0400)]
font chooser: Add properties for font features and language
These can't be returned as part of the font description,
so we need new api for them. For now, this is just readonly
properties. Maybe these should be writable too, eventually.
Matthias Clasen [Sat, 31 Mar 2018 13:37:18 +0000 (09:37 -0400)]
font chooser: Add font features
Populate the tweak page with OpenType font features.